package edu.pxd.cecs.ece510.pocketmanager;

import java.util.ArrayList;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class DataBase {
	
	 private static final int DATABASE_VERSION = 1;

	 // Database Name
	 private static final String DATABASE_NAME = "EventDatabase";

	 // Contacts table name
	 private static final String EVENT_TABLE = "EventTable";

	 // Contacts Table Columns names
	 private static final String EVENT_NAME = "name";
	 private static final String ID = "id";
	 
	 private final ArrayList<EventClass> event = new ArrayList<EventClass>();

	 public DataBase(SQLiteDatabase db) {
		 //db = openOrCreateDatabase("EventDatabase", null);
		 //openOrCreateDatabase("DB", MODE_PRIVATE, null);
	 }

	
	private SQLiteDatabase openOrCreateDatabase(String string, Object object) {
		// TODO Auto-generated method stub
		return null;
	}


	/*@Override
	public void onCreate(SQLiteDatabase db) {
		String CREATE_EVENTS_TABLE = "CREATE TABLE " + EVENT_TABLE + "(" +
				EVENT_NAME + " TEXT," + ID + " INTEGER PRIMARY KEY" + ")";
			db.execSQL(CREATE_EVENTS_TABLE);
			//db.close();
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub		
	}*/
	
	 // Adding new contact
    /*public void Add_Contact(EventClass obj, int i) {
	SQLiteDatabase db = this.getWritableDatabase();
	ContentValues values = new ContentValues();
	values.put(PERSON_NAME, obj.personNames[i]); // Contact Name
	values.put(AMOUNT, obj.amount[i]); // Contact Phone
	
	// Inserting Row
	db.insert(EVENT_DATA, null, values);
	db.close(); // Closing database connection
    }*/

}
